package com.example.live.adapter

import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.example.common.mvi.BaseMviFragment

class RankPageAdapter(fm:FragmentActivity, private val list: MutableList<BaseMviFragment<out ViewDataBinding>>):FragmentStateAdapter(fm) {
    override fun getItemCount(): Int =list.size

    override fun createFragment(position: Int): Fragment = list[position]

}